package com.system.elastic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户id,手机号码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * MOD5（MOD5（PASSWORD明文+固定salt）+随机Salt）
     */
    @TableField(value = "password")
    private String password;

    /**
     * 
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 头像，云存储链接
     */
    @TableField(value = "head")
    private String head;

    /**
     * 注册时间
     */
    @TableField(value = "registed_date")
    private Date registedDate;

    /**
     * 上次登录时间
     */
    @TableField(value = "last_login_date")
    private Date lastLoginDate;

    /**
     * 登录次数
     */
    @TableField(value = "login_count")
    private Integer loginCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}